$(function () {

$('#titletext').click(function() {
var ie=document.all&&!window.opera? document.all : 0
var frmObj=ie? ie["titletext"] : document.getElementById("titletext")
var toObj=ie? ie["titlebox"] : document.getElementById("titlebox")
toObj.style.width=frmObj.offsetWidth+7+'px'
frmObj.style.display='none';
toObj.style.display='inline';
});
});